package git.determinal.template;

import git.determinal.template.beans.OtherBean;
import git.determinal.template.dao.PersonDao;
import git.determinal.template.dao.UserDao;
import git.determinal.template.mapper.TemplateMapper;
import git.determinal.template.model.Template;
import git.determinal.template.service.UserService;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author determinal
 * @Date 2024/6/20 下午2:32
 */
@MapperScan("git.determinal.template.mapper")
public class ApplicationContextTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
//        OtherBean otherBean = applicationContext.getBean(OtherBean.class);
        UserDao userDao = applicationContext.getBean("userDao", UserDao.class);
//        userService.show();
        System.out.println(userDao);
    }
}
